*! version 3.0 13Mar2017 
*! by Hung-Jen Wang
*!    Department of Economics, National Taiwan University
*!    wangh@ntu.edu.tw

capture program drop looklog
program define looklog
  capture log close
  global pwd18: pwd

   capture winexec d:\editors\winedt32\ProEdt.exe -C=ProEdt "$pwd18\\`1'"
   if _rc ~= 0 {
        winexec notepad "$pwd18\\`1'"
    }

end
